package baiqi.sishen.community.mapper;

import baiqi.sishen.community.dto.QueryQuestionDTO;
import baiqi.sishen.community.model.Question;

import java.util.List;

/**
 * @author 兕神
 * @version 1.0
 * DateTime: 2023/5/1
 */

public interface QuestionExtMapper {

    void incViewCount(Question question);

    void incCommentCount(Question question);

    List<Question> selectRelated(Question question);

    List<Question> selectQuestionBySearch(QueryQuestionDTO queryQuestionDTO);

    void incLikeCount(Question question);

    List<Question> selectTopQuestion(QueryQuestionDTO queryQuestionDTO);
}
